/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package core.messages.client.inGame;
import cstAndEnum.*;
import models.CastInfo;

/**
 * 客户端发送，是用技能的Msg
 * @author Invince
 */
public class Msg_Skill_Cast extends Msg_Cast{//？？？？？？？这里是纯技能，不消耗牌
/*----------Attributs-------------------*/
    /**
     * 表示是否是主公技
     */
    protected SKILL_TYPE skillType;


/*----------Public functions------------*/
/*----------Private functions-----------*/
/*----------Constructor-----------------*/
    public Msg_Skill_Cast(String sender, String receiver, int idSkill, int idSource,int[] idTargetPlayers,int[] idTargetCards,SKILL_TYPE skillType) {
        super(sender, receiver,idSkill, idSource, idTargetPlayers,idTargetCards);
        this.skillType = skillType;
    }

    public Msg_Skill_Cast(String sender, String receiver, SKILL_TYPE skillType,CastInfo castInfo){
        super(sender,receiver);
        this.idSkill=castInfo.getSkill().getId();
        this.idSource=castInfo.getSource().getId();
        for(int i=0;i<castInfo.getTargetPlayers().size();i++){
            this.idTargetPlayers[i]=castInfo.getTargetPlayers().get(i).getId();
        }
        this.skillType=skillType;
    }

/*----------Gets and sets---------------*/
    public SKILL_TYPE getSkillType() {
        return skillType;
    }

    public void setSkillType(SKILL_TYPE skillType) {
        this.skillType = skillType;
    }

}
